package Mangos::DB::Mangos::GossipMenuOption;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'gossip_menu_option',

    columns => 
    [
        menu_id            => { type => 'integer', not_null => 1 },
        id                 => { type => 'integer', not_null => 1 },
        option_icon        => { type => 'integer', default => '0', not_null => 1 },
        option_text        => { type => 'text', length => 65535 },
        option_id          => { type => 'integer', default => '0', not_null => 1 },
        npc_option_npcflag => { type => 'integer', default => '0', not_null => 1 },
        action_menu_id     => { type => 'integer', default => '0', not_null => 1 },
        action_poi_id      => { type => 'integer', default => '0', not_null => 1 },
        action_script_id   => { type => 'integer', default => '0', not_null => 1 },
        box_coded          => { type => 'integer', default => '0', not_null => 1 },
        box_money          => { type => 'integer', default => '0', not_null => 1 },
        box_text           => { type => 'text', length => 65535 },
        cond_1             => { type => 'integer', default => '0', not_null => 1 },
        cond_1_val_1       => { type => 'integer', default => '0', not_null => 1 },
        cond_1_val_2       => { type => 'integer', default => '0', not_null => 1 },
        cond_2             => { type => 'integer', default => '0', not_null => 1 },
        cond_2_val_1       => { type => 'integer', default => '0', not_null => 1 },
        cond_2_val_2       => { type => 'integer', default => '0', not_null => 1 },
        cond_3             => { type => 'integer', default => '0', not_null => 1 },
        cond_3_val_1       => { type => 'integer', default => '0', not_null => 1 },
        cond_3_val_2       => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'menu_id', 'id' ],
);

1;

package Mangos::DB::Mangos::GossipMenuOption::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::GossipMenuOption' }

__PACKAGE__->make_manager_methods('gossip_menu_option');

1;
